<%inherit file="/base.mako"/>
${h.link_to('Root', h.url_for(id=None))}
% for item in c.path:
->${h.link_to(item.name, h.url_for(id=item.id))}
% endfor 
<br/>
${h.form(h.url(action='save_edit'), method='post')}
Имя: ${h.text_field('name', value=c.category.name)}
<br/>
Родитльская категория: ${h.select('parent_category', h.format_options(c.categories, value_prop='id', caption_prop='name', add_empty=True, selected_value=c.category.parent_category.id if c.category.parent_category != None else None))}
<br/>
Описание: ${h.text_field('description', value=c.category.description)}
<br/>
            ${h.submit(u'Save')}
${h.end_form()}